<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style type="text/css">
            img {
                position: absolute;
            }

            
        </style>
    </head>
    <body>
        <img src="pic/angel.gif">
        <script type="text/javascript">
            var pic = document.querySelector('img');
            document.addEventListener('mousemove', function(e) {
                var x = e.pageX;
                var y = e.pageY;
                pic.style.left = x - 50 + 'px';
                pic.style.top = y - 40 + 'px';
            });
        </script>
    </body>
</html>
